package com.xuxin.oauth2.credentials.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xuxin.oauth2.credentials.entity.Permission;
import com.xuxin.oauth2.credentials.entity.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @Author: Gosin
 * @Date: 2020/6/1 21:29
 */
@Mapper
public interface UserMapper extends BaseMapper<User> {
    List<Permission> queryUserAuthorities(Integer userId);
    User queryUserByUsername(String username);
}

